//
//  IOFunction.h
//  class
//
//  Created by Threese on 2019/7/23.
//  Copyright © 2019 Threese. All rights reserved.
//

#pragma once

#include <iostream>
#include <fstream>
#include "CDate.h"
#include "CTask.h"
#include "CTimeLine.h"
#include "CPlan.h"

using namespace std;

int getLength(IPlan *p);

int getLength(ITimeLine *t);

int getLength(ITask *t);


int checkHead(string buff);

IPlan *ctrlOpen(std::string fileName);

void ctrlSave(std::string fileName, IPlan *pp);
